import request from '@/utils/request'

export function baoList(data) {
  return request({
    url: '/api/uni/bao/bao/list',
    method: 'post',
    data
  })
}

export function baoCheck(data) {
  return request({
    url: '/api/uni/bao/bao/check',
    method: 'post',
    data
  })
}

export function baoCheckBatch(data) {
  return request({
    url: '/api/uni/bao/bao/check-batch',
    method: 'post',
    data
  })
}

export function baoDelete(data) {
  return request({
    url: '/api/uni/bao/bao/delete',
    method: 'post',
    data
  })
}

export function baoHas(data) {
  return request({
    url: '/api/uni/bao/bao/has',
    method: 'post',
    data
  })
}

export function baoSet(data) {
  return request({
    url: '/api/uni/bao/bao/set',
    method: 'post',
    data
  })
}

// pay
export function payList(data) {
  return request({
    url: '/api/uni/finance/pay/list',
    method: 'post',
    data
  })
}

// pay for
export function payForList(data) {
  return request({
    url: '/api/uni/finance/pay-for/list',
    method: 'post',
    data
  })
}

// commission profit
export function profit(data) {
  return request({
    url: '/api/uni/finance/profit/list',
    method: 'post',
    data
  })
}

// cash
export function cashList(data) {
  return request({
    url: '/api/uni/finance/cash/list',
    method: 'post',
    data
  })
}

// merchant
export function merchantList(data) {
  return request({
    url: '/api/uni/finance/merchant/list',
    method: 'post',
    data
  })
}

// cash pay for
export function cashPay(data) {
  return request({
    url: '/api/uni/finance/cash/pay-for',
    method: 'post',
    data
  })
}

// cash reject
export function cashReject(data) {
  return request({
    url: '/api/uni/finance/cash/reject',
    method: 'post',
    data
  })
}

// ---------------------------
export function getPayTotal(data) {
  return request({
    url: '/api/uni/finance/finance/pay',
    method: 'post',
    data
  })
}

export function getCashTotal(data) {
  return request({
    url: '/api/uni/finance/finance/cash',
    method: 'post',
    data
  })
}

export function getOrderTotal(data) {
  return request({
    url: '/api/uni/finance/finance/order',
    method: 'post',
    data
  })
}

export function getDataTotal(data) {
  return request({
    url: '/api/uni/finance/finance/data',
    method: 'post',
    data
  })
}

